#!/usr/bin/env python2.7

#from wython import RoutingException
#print RoutingException

from wython import Application
from wython import Route, ErrorRoute
#from wython.stencils import ResourcesController
#from wython import Application

import wython

Application('./controllers', [
	Route({'res':None}, 'ResourcesController', {'root':'./res/', 'listing': True}),
	Route({'index':'page'}, 'IndexController'),
	Route({'about':'page'}, 'AboutController'),
	ErrorRoute(403, 'PermissionDeniedController'),
	ErrorRoute(404, 'NotFoundController')
#	Route({'about':None, '(\d+)':'number'}, 'TestController')
])
